import request from "@/apps/admin/units/request"
import {HttpResultData} from "@/types/project";

/**
 * 获取行政地区
 * @param where
 * @returns {*}
 */
export const getRegionDataApi = (where: { pid: number, name?: string }): Promise<HttpResultData<any>> => request(`/system-region/list`, where)


/**
 * 修改热门状态
 */
export const changeHotApi = (state: 0 | 1, id: number): Promise<HttpResultData<any>> => request(`/system-region/change-hot`, {state, id}, 'POST')